package com.example.excel.data;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Aaron
 * @since 2021/7/14 11:25
 * <p>描述：</p>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LongRentCarFailedDto {

    @ExcelProperty(value = "*所属停车场", index = 0)
    private String parkName;

    @ExcelProperty(value = "*所属区域", index = 1)
    private String sectionName;

    @ExcelProperty(value = "用户名", index = 2)
    private String carOwnerName;

    @ExcelProperty(value = "手机号", index = 3)
    private String carOwnerTel;

    @ExcelProperty(value = "地址", index = 4)
    private String address;

    @ExcelProperty(value = "单位名称", index = 5)
    private String companyName;

    @ExcelProperty(value = "*车牌号", index = 6)
    private String carNum;

    @ExcelProperty(value = "*车辆类型(1:*燃油小型车,2:燃油中型车,3:燃油大型车,4:新能源小型车,5:新能源中型车,6:新能源大型车)", index = 7)
    private String vehicleType;

    @ExcelProperty(value = "*生效时间(yyyy-MM-dd)", index = 8)
    @DateTimeFormat(value = "yyyy-MM-dd")
    private String beginDateStr;

    @ExcelProperty(value = "*失效时间(yyyy-MM-dd)", index = 9)
    private String endDateStr;

    @ExcelProperty(value = "金额(元)", index = 10)
    private String fee;

    @ExcelProperty(value = "错误数据", index = 11)
    private String errField;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

}
